package com.ruoyi.project.system.commodity.servuce;

import com.ruoyi.project.system.commodity.domain.SpecsKey;
import com.ruoyi.project.system.commodity.mapper.SpecsKeyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecsKeyServiceImp implements SpecsKeyService{
    @Autowired
    SpecsKeyMapper specsKeyMapper;
    @Override
    public int insertSpecsKey(SpecsKey specsKey) {
        return specsKeyMapper.insertSpecsKey(specsKey);
    }
    @Override
    public List<SpecsKey> querySpecsPage(int start,int pageSize){
        return specsKeyMapper.querySpecsPage(start,pageSize);
    }

    @Override
    public int querySpecsCount(){
        return specsKeyMapper.querySpecsCount();
    }


    @Override
    public void deleteSpecsById(int keyId){
        specsKeyMapper.deleteSpecsById(keyId);
    }

    @Override
    public void updateSpecsKeyById(SpecsKey specsKey){
        specsKeyMapper.updateSpecsKeyById(specsKey);
    }

    @Override
    public List<SpecsKey> querySpecsByName(String name){
        return specsKeyMapper.querySpecsByName(name);
    }


}
